package br.edu.univas.jobmanager.test;

import java.util.ArrayList;

import br.edu.univas.jobmanager.entity.Tarefa;
import br.edu.univas.jobmanager.listener.TarefaMockInterface;

public class TarefaMock implements TarefaMockInterface {

	ArrayList<Tarefa> tarefas = new ArrayList<Tarefa>();
	
	@Override
	public void insereTarefa(Tarefa tarefa) {
		tarefas.add(tarefa);
		
	}

	@Override
	public Long getQuantidadedeTarefas() {
		return (long) tarefas.size();
	}

	public void delete(Tarefa tarefaTest) {
		tarefas.clear();
		
	}

}
